package com.yd.sinjutech.entity;

public class Login {
	private int id;
	private String login;
	private String password;
	private String code;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	private User user;
	public Login() {
		super();
	}
	public Login(String login, String password) {
		super();
		this.login = login;
		this.password = password;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	@Override
	public String toString() {
		return "Login [id=" + id + ", login=" + login + ", password=" + password + ", code=" + code + ", user=" + user
				+ "]";
	}
	
}
